﻿using Domain.Entity;
using Domain.Entity.ic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepository
{
    public interface ICheck_dRepository
    {
        //添加盘点明细
        Task<int> AddCheck_d(Check_d check_D);

        //修改盘点明细
        Task<int> UpdateCheck_d(Check_d check_D);

        //删除盘点明细
        Task<int> DeleteCheck_d(int id);

        //查询盘点明细
        Task<List<Check_d>> GetCheck_Ds(int icid);

        //查询盘盈盘亏明细
        Task<List<Check_d>> GetCheck_DsYingKui(int icid,string status);

        //修改出入库状态
        Task<int> UpdateStatus(string name, int status,int icid,int procid);

        //统计盘点
        Task<FenYe<CheckTJResult>> GetCheckTJResult(FenYe<CheckTJResult> fenYe,string? proc_code, string? ic_code, string? ic_type, string? create_name,int? type_id, string? proc_primary_unit, int? wh_id, string? ic_user,string? createstartTime, string? createendTime,decimal? checkprofitNumMin, decimal? checkprofitNumMax,decimal? checklossesNumMin, decimal? checklossesNumMax,decimal? checkprofitTotalMin, decimal? checkprofitTotalMax,decimal? checklossesTotalMin, decimal? checklossesTotalMax,int[]? icStatusArray);
    }
}
